package com.fanshilz.flower2025.apps.wechatminiapp.project.resp;

import com.fanshilz.flower2025.apps.admin.project.resp.AttachmentDetailResp;
import com.mybatisflex.annotation.RelationOneToMany;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.List;

@Data
public class ProjectBrowsesResp {

    @Schema(description = "线索ID")
    private Long projectId;

    @Schema(description = "线索编号")
    private String projectUuid;

    @Schema(description = "线索简称")
    private String projectShortName;

    @Schema(description = "收入 万元/年")
    private Double projectIncomeYearMoney;

    @Schema(description = "利润 万元/年")
    private Double projectProfitYearMoney;

    @Schema(description = "叫价 万元")
    private Double projectSellingPriceMoney;

    @Schema(description = "成立年数")
    private Integer projectFoundingTimeYear;

    @Schema(description = "项目状态")
    private String projectStatusLabel;

    @Schema(description = "项目状态value")
    private Integer projectStatusValue;

    @Schema(description = "省份")
    private String projectProvinceName;

    @Schema(description = "省份code")
    private String projectProvinceCode;

    @Schema(description = "城市")
    private String projectCityName;

    @Schema(description = "城市code")
    private String projectCityCode;

    @Schema(description = "区县")
    private String projectAreaName;

    @Schema(description = "code")
    private String projectAreaCode;

    @Schema(description = "列表图 默认一张")
    @RelationOneToMany(selfField = "projectId", targetField = "objId", targetTable = "flower_attachment", extraCondition = "obj_type = 2")
    private List<AttachmentDetailResp> projectIndexCoverImages;

}
